package com.qincji.bottombar;

import ohos.agp.components.element.Element;
import ohos.agp.utils.Color;

/**
 * description: 一个按钮的属性 <br>
 *
 * @author qincji
 * @email xhunmon@126.com
 * @date 2021/6/15
 */
public class TabItem {
    Element imgNormal;
    Element imgActive;
    String desc;

    int imgNormalId;
    int imgActiveId;
    int descId;

    int imgWidth;//图标的宽度
    int imgHeight;//图标的高度

    Color txtNormalColor;//默认字体未选择颜色
    Color txtActiveColor;//默认字体未选择颜色
    int txtSize;//字体大小

    public TabItem() {
        super();
    }

    public TabItem(Element imgNormal, Element imgActive, String desc) {
        super();
        this.imgNormal = imgNormal;
        this.imgActive = imgActive;
        this.desc = desc;
    }

    public TabItem(int imgNormalId, int imgActiveId, int descId) {
        this.imgNormalId = imgNormalId;
        this.imgActiveId = imgActiveId;
        this.descId = descId;
    }

    public TabItem imgNormal(Element imgNormal) {
        this.imgNormal = imgNormal;
        return this;
    }

    public TabItem imgActive(Element imgActive) {
        this.imgActive = imgActive;
        return this;
    }

    public TabItem desc(String desc) {
        this.desc = desc;
        return this;
    }

    public TabItem imgNormalId(int imgNormalId) {
        this.imgNormalId = imgNormalId;
        return this;
    }

    public TabItem imgActiveId(int imgActiveId) {
        this.imgActiveId = imgActiveId;
        return this;
    }

    public TabItem descId(int descId) {
        this.descId = descId;
        return this;
    }

    public TabItem imgWidth(int imgWidth) {
        this.imgWidth = imgWidth;
        return this;
    }

    public TabItem imgHeight(int imgHeight) {
        this.imgHeight = imgHeight;
        return this;
    }

    public TabItem textNormalColor(Color color) {
        this.txtNormalColor = color;
        return this;
    }

    public TabItem textActiveColor(Color color) {
        this.txtActiveColor = color;
        return this;
    }

    public TabItem textSize(int size) {
        this.txtSize = size;
        return this;
    }
}
